$(document).ready(function(){
//    nav-li hover e
    var num;
    $('.nav-main>li[id]').hover(function(){
       /*图标向上旋转*/
        $(this).children().removeClass().addClass('hover-up');
        /*下拉框出现*/
        var Obj = $(this).attr('id');
        num = Obj.substring(3, Obj.length);
        var hi="280px";
        if(num=='1'){
        	hi="150px";
        }else if(num=='2'){
        	hi="200px";
        }else if(num=='3'){
        	hi="300px";
        }else if(num=='4'){
        	hi="200px";
        }else if(num=='5'){
        	hi="50px";
        }
        
        $('#box-'+num).css({"height":hi,"background":"#036564"});
    },function(){
        /*图标向下旋转*/
        $(this).children().removeClass().addClass('hover-down');
        /*下拉框消失*/
        $('#box-'+num).css({"height":"1px","background":"#ede3d1"});
    });
//    hidden-box hover e
    $('.hidden-box').hover(function(){
        /*保持图标向上*/
    	$('#li-'+num).children().removeClass().addClass('hover-up');
        //$('.hidden-loc-us').css("display","block");
        //$(this).show();//display:block;
    	var hi="280px";
    	if(num=='1'){
        	hi="150px";
        }else if(num=='2'){
        	hi="200px";
        }else if(num=='3'){
        	hi="300px";
        }else if(num=='4'){
        	hi="200px";
        }else if(num=='5'){
        	hi="50px";
        }
        $(this).css({"height":hi,"background":"#036564"});
    },function(){
        //$(this).slideUp(200);
       // $('.hidden-loc-us').css("display","none");
        //$('.hidden-loc-us').css("height","0px");
        $('#li-'+num).children().removeClass().addClass('hover-down');
    	$(this).css({"height":"1px","background":"#ede3d1"});
    });
    
    
    
});
